#include <iostream>

using namespace std;


void whotoldlie()
{
  for (char x = 'a'; x <= 'd'; x++)
  {
    bool a = (x != 'a') ? 1 : 0;
    bool b = (x == 'c') ? 1 : 0;
    bool c = (x == 'd') ? 1 : 0;
    bool d = (!(x == 'd')) ? 1 : 0;
    if ((a + b + c + d) == 3)
    {
      char thief = 'a' + x;
      std::cout << "The thief is " << thief << std::endl;
      break;
    }
  }
}

